<%@ Page Language="C#" %>
<%@ Import Namespace="System.Net" %>

<Script runat="server">
public void GetSalesRank(Object sender, EventArgs e) {
  BarnesAndNoble bn = new BarnesAndNoble();
  GetBookDetailsMatches match;
  match = bn.GetBookDetails(isbn.Value);
  rank.Text = match.Rank;
}
</Script>
<font face=arial>
  <form runat=server ID="Form1">
  ISBN number: <input type=text id="isbn" runat=server NAME="isbn"/>
  <input type=submit id=submit onserverclick="GetSalesRank" runat=server NAME="submit"/>
  </form>
  Sales Rank: <font color=red><b><asp:label id=rank runat=server/></b></font>
</font>

<!-- Sample ISBNs
A Preview of ASP+: 1861004753
Professional ASP.NET: 1861004885
-->